package com.xbongbong.saas.service;

import com.xbongbong.paas.pojo.dto.SaasFormSaveDTO;
import com.xbongbong.paas.pojo.dto.ValidateDataDTO;
import com.xbongbong.paas.toolbox.exception.XbbException;

/**
 * saas业务保存前后逻辑校验接口
 *
 * @author chaoxiong.lei
 * @date 2019/2/1 14:36
 */
public interface SaasSaveService {
    /**
     * 保存前saas特殊校验
     *
     * @param validateDataDTO saas特殊校验数据入参
     * @author chaoxiong.lei
     * @date 19:08 2019/1/20
     * @since v1.0
     **/
    void beforeSave(ValidateDataDTO validateDataDTO) throws XbbException;

    /**
     * 保存后逻辑
     *
     * @param saasFormSaveDTO saas保存数据
     * @author chaoxiong.lei
     * @date 19:08 2019/1/20
     * @since v1.0
     **/
    void afterSave(SaasFormSaveDTO saasFormSaveDTO) throws XbbException;
}
